import request from '@/utils/request'

// 查询列表
export function GetListAPI (params) {
  return request({
    url: '/equipment/maintenance-project/list',
    method: 'GET',
    params
  })
}

// 新增
export function AddDataAPI (data) {
  return request({
    url: '/equipment/maintenance-project/add',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI (data) {
  return request({
    url: '/equipment/maintenance-project/update',
    method: 'PUT',
    data
  })
}

// 查询单个
export function GetViewAPI (params) {
  return request({
    url: '/equipment/maintenance-project/getView/' + params,
    method: 'GET'
  })
}

// 删除单个
export function DelDataAPI (params) {
  return request({
    url: '/equipment/maintenance-project/remove/' + params,
    method: 'DELETE'
  })
}
/**
 * 设备名称 
 */
export function GetDeviceDdlListAPI (params) {
  return request({
    url: '/system/device/getDeviceDdlList',
    method: 'GET',
    params
  })
}
// 查询列表
export function GetPlannedProjectAPI (params) {
  return request({
    url: '/equipment/maintenance-project/plannedProject',
    method: 'GET',
    params
  })
}
export function GetDeviceDdlAPI () {
  return request({
    url: '/system/device/getDeviceDdl',
    method: 'GET',

  })
}